package com.ktmall.ktmalluijava.pojo;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @author ZhouShuang
 * @version 17
 * @Title
 * @date 2025/5/9 下午7:52
 */
@Data
public class Category {
    private Long id; //分类id
    private Integer categoryLevel; //分类级别(1：一级分类，2：二级分类 3.三级分类)
    private Long parentId; //父分类id
    private String name; //分类名称
    private Integer categoryRank; //排序值
    private String icon; //分类图标
    private Integer enabled; //删除标识字段(0:未删除 1：已删除)
    private String createTime; //创建时间
    private String updateTime; //修改时间
    private List<Category> children ; //二级分类列表
    private List<Goods> goodsList; //二级分类下的商品列表

    public Category (){

    }

    public Category(Long id, Integer categoryLevel, Long parentId, String name, Integer categoryRank, String icon, Integer enabled, String createTime, String updateTime, List<Category> children, List<Goods> goodsList) {
        this.id = id;
        this.categoryLevel = categoryLevel;
        this.parentId = parentId;
        this.name = name;
        this.categoryRank = categoryRank;
        this.icon = icon;
        this.enabled = enabled;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.children = children;
        this.goodsList = goodsList;
    }
}
